import request from "@/utils/request.js";


export function addIssue(data){
    return request({
        url: "/issues/add",
        method: 'post',
        data:data
    })
}

export function modifyIssue(data){
    return request({
        url: "/issues/modify",
        method: 'put',
        data:data
    })
}

export function delIssue(id){
    return request({
        url: "/issues/del",
        method: 'delete',
        data:{id:id}
    })
}

export function batchDelIssue(ids){
    return request({
        url: "/issues/batchDel",
        method: 'delete',
        data:{ids:ids}
    })
}



export function getIssuesList(params){
    return request({
        url: "/issues/list",
        method: 'get',
        params:params
    })
}

export function getIssueByPk(pk){
    return request({
        url: `/issues/get?id=${pk}`,
        method: 'get',
    })
}
